Skip to content

fix(NcRichContenteditable): Fix tribute opening and eating input after pasting text#3916

Closed
nickvergessen wants to merge 2 commits intomasterfrom
bugfix/3913/no-tribute-on-pasting
Closed

fix(NcRichContenteditable): Fix tribute opening and eating input after pasting text#3916
nickvergessen wants to merge 2 commits intomasterfrom
bugfix/3913/no-tribute-on-pasting

Conversation

@nickvergessen
Copy link
Contributor

Pasting content will pop up tribute automatically,
when the message starts with a trigger

: for emojis
@ for mentions
/ for link picker

So we detach tribute before pasting and then
attach it again afterwards, so the opened tribute
doesn't eat the rest of your message until you press
Enter and just "autocomplete" the tribute that has
been actively hanging in the top left of the screen

Fix #3913

Based on top of #3915 as it is in the same lines

Signed-off-by: Joas Schilling <coding@schilljs.com>
…r pasting text

Pasting content will pop up tribute automatically,
when the message starts with a trigger

	: for emojis
	@ for mentions
	/ for link picker

So we detach tribute before pasting and then
attach it again afterwards, so the opened tribute
doesn't eat the rest of your message until you press
Enter and just "autocomplete" the tribute that has
been actively hanging in the top left of the screen

Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen nickvergessen added bug Something isn't working 3. to review Waiting for reviews papercut Annoying recurring issue with possibly simple fix. feature: rich-contenteditable Related to the rich-contenteditable components labels Mar 23, 2023
@nickvergessen nickvergessen self-assigned this Mar 23, 2023
@nickvergessen nickvergessen added this to the 7.8.3 milestone Mar 23, 2023
@julien-nc
Copy link
Contributor

Works fine. Ready to approve after a decision is take regarding https://github.com/nextcloud/nextcloud-vue/pull/3915/files#r1146092180

@nickvergessen
Copy link
Contributor Author

nickvergessen commented Mar 23, 2023

Seems we found a better solution in #3917

@raimund-schluessler raimund-schluessler deleted the bugfix/3913/no-tribute-on-pasting branch August 25, 2023 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug Something isn't working feature: rich-contenteditable Related to the rich-contenteditable components papercut Annoying recurring issue with possibly simple fix.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Text eating on shift+enter after pasting url (this twice) when post started with a mention

2 participants